import { createApp } from "vue";

import App from "@/App.vue";

import router from "./router/index";

import ElementPlus from "element-plus";

import "element-plus/dist/index.css";

import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import "@/styles/global.scss"; // global css

import "animate.css";

import http from "./utils/http";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.config.globalProperties.$http = http;

app.provide("http", http);
app.provide("baseUrl", import.meta.env.VITE_API_BASE_URL);
app.provide('carMp3',import.meta.env.VITE_APP_CAR_MUSIC);

app.use(router).use(ElementPlus).mount("#app");
